﻿<Page x:Class="Dispatchr.Client.Views.LoginPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:Dispatchr.Client.Views"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:prismmvvm="using:Microsoft.Practices.Prism.Mvvm"
      xmlns:sampleData="using:Dispatchr.Client.SampleData"
      prismmvvm:ViewModelLocator.AutoWireViewModel="True"
      mc:Ignorable="d">
    <d:Page.DataContext>
        <sampleData:LoginPageViewModel/>
    </d:Page.DataContext>
    <Grid Background="{StaticResource AppBackground}">
        <StackPanel Margin="40" VerticalAlignment="Center">
            <TextBlock Style="{StaticResource HeaderTextBlockStyle}">Hello</TextBlock>
            <TextBlock Style="{StaticResource SubheaderTextBlockStyle}">Welcome to Solarizr</TextBlock>
            <Button Margin="0,40,0,0"
                    Command="{Binding LoginCommand}"
                    Visibility="{Binding DisplayLoginButton, Converter = {StaticResource BooleanToVisibilityConverter}}">Login</Button>
            <ProgressBar IsIndeterminate="True" 
                         Visibility="{Binding DisplayLoginButton, Converter = {StaticResource InverseBooleanToVisibilityConverter}}"></ProgressBar>
        </StackPanel>
    </Grid>
</Page>
